SELECT	COUNT (*)
FROM	LX_PROCESSO_LOG_temp(nolock)
where	STATUS = 5

sp_helptext LX_PROCESSOS

select	COUNT(*)
from	LX_PROCESSO_LOG
where	STATUS = '5'

SELECT	COUNT(*)
FROM	LX_PROCESSO_LOG
WHERE	STATUS = 0
and		PROCESSO in ('LX_LJ_GERA_MOVIMENTO_ECF','LX_LF_LOJA_CONTROLE_FISCAL_IMPOSTO')

lx_processos

-- update	lx_processo_log
set	status = 7
where	status = 5
and		PROCESSO in ('LX_LJ_GERA_MOVIMENTO_ECF','LX_LF_LOJA_CONTROLE_FISCAL_IMPOSTO')







